package com.zzyl.nursing.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 合同对象
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "合同对象")
public class Contract extends BaseEntity {
    //序列化版本ID
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键ID")
    private Long id;
    @ApiModelProperty(value = "老人ID")
    private Long elderId;
    @ApiModelProperty(value = "合同名称")
    private String contractName;
    @ApiModelProperty(value = "合同编号")
    private String contractNumber;
    @ApiModelProperty(value = "协议地址（文件路径或URL）")
    private String agreementPath;
    @ApiModelProperty(value = "丙方手机号")
    private String thirdPartyPhone;
    @ApiModelProperty(value = "丙方姓名")
    private String thirdPartyName;
    @ApiModelProperty(value = "老人姓名")
    private String elderName;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
    @ApiModelProperty(value = "状态（0：未生效，1：已生效，2：已过期，3：已失效）")
    private Integer status;
    @ApiModelProperty(value = "签约日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signDate;
    @ApiModelProperty(value = "解除提交人")
    private String terminationSubmitter;
    @ApiModelProperty(value = "解除日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime terminationDate;
    @ApiModelProperty(value = "解除协议地址（文件路径或URL）")
    private String terminationAgreementPath;
    @ApiModelProperty(value = "排序编号")
    private Integer sortOrder;
}